package io.kiki.sba.registry.common.model.store;

import com.google.common.collect.Interner;
import com.google.common.collect.Interners;
import io.kiki.sba.registry.common.model.ClientInterfaceId;

public final class ClientInterfaceIdIntern {
    private static final Interner<ClientInterfaceId> INTERNER = Interners.newWeakInterner();

    private ClientInterfaceIdIntern() {
    }

    public static ClientInterfaceId intern(ClientInterfaceId clientInterfaceId) {
        if (clientInterfaceId == null) {
            return null;
        }
        return INTERNER.intern(clientInterfaceId);
    }
}
